/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.violetPrinciple.ISP.AppConfig;

import org.springframework.context.annotation.Bean;
import za.ac.cput.violetPrinciple.ISP.Impl.Car;
import za.ac.cput.violetPrinciple.ISP.Impl.Motorbike;
import za.ac.cput.violetPrinciple.ISP.Impl.Truck;

/**
 *
 * @author Oceanwave
 */
public class AppConfig 
{

    @Bean(name = "theCar")
    public Car getCar() 
    {
        return new Car();
    }

    @Bean(name = "theMotorBike")
    public Motorbike getMotorbike() 
    {
        return new Motorbike();
    }
    
    @Bean(name = "theTruck")
    public Truck getTruck() 
    {
        return new Truck();
    }
}
